<template>
    <div class="model-form">
        <el-page-header @back="goBack" content="详情">
        </el-page-header>
        <el-form class="viewForm" label-width="80px">
                    <el-col :span="20">
                        <el-form-item label="名称">
                            <div v-html="viewModel.name"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="封面">
                            <div v-html="viewModel.logo"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="面额">
                            <div v-html="viewModel.money"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="使用门槛">
                            <div v-html="viewModel.minPrice"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="每人限领">
                            <div v-html="viewModel.limitNum"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="发放开始时间">
                            <div v-html="viewModel.sendBeginTime"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="发放截止时间">
                            <div v-html="viewModel.sendEndTime"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="有效期类型">
                            <div v-html="viewModel.expireTypeName"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="优惠券开始时间">
                            <div v-html="viewModel.useBeginTime"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="优惠券截止时间">
                            <div v-html="viewModel.useEndTime"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="固定天数">
                            <div v-html="viewModel.useDay"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="活动范围">
                            <div v-html="viewModel.couponScope"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="卡券库存">
                            <div v-html="viewModel.stock"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="使用说明">
                            <div v-html="viewModel.note"></div>
                        </el-form-item>
                    </el-col>
        </el-form>
    </div>
</template>

<script setup>
    import {useShow} from "@/utils/useShow";
    const { goBack,viewModel} = useShow("/couponRule/view")
</script>

<style scoped>

</style>